﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics;

namespace Jet.Dal.EF.Tests.DataObjects
{
	/// <summary>
	/// Information about category from Northwind database
	/// </summary>
	[DebuggerDisplay("{CategoryID} - {CategoryName}")]
	[Table("Categories")]
	public class Categories
	{
		[Key]
		public int CategoryID { get; set; }

		[Column]
		public string CategoryName { get; set; }

		[Column]
		public string Description { get; set; }

		[Column]
		public byte[] Picture { get; set; }

		/// <summary>
		/// Return info about category
		/// </summary>
		public override string ToString()
		{
			return string.Format("Catogory: id= '{0}' name='{1}' description='{2}'", CategoryID, CategoryName, Description);
		}
	}
}
